<?php slot('header')?>
<script type="text/javascript">
function beforeSend(){
	$('#login_password').val(Sha1.hash($('#login_password').val()));
}
function beforeReg(){
	$('#reg_password').val(Sha1.hash($('#reg_password').val()));
	$('#reg_password_confirm').val(Sha1.hash($('#reg_password_confirm').val()));
}
function login(data){
	FORM.login(data);
}
function register(data){
	FORM.register(data);
}
$(function(){
	MAIN.setMenu('customer');
	FORM.init();
});
</script>
<?php end_slot();?>
<main>
	<aside class="main" style="width: 315px">
		<nav class="content">
			<a href="#"><h1>Đăng nhập</h1></a>
			<div class="clr"></div>
		</nav>
		<div class="form">
		<form action="/" method="post" id="form_login">
			<label for="login_email">Email đăng nhập</label><br/>
			<input type="email" class="hz-required hz-email" placeholder="vd: <?php echo sfConfig::get('app_contact_mail')?>" id="login_email" name="login_email"/><br/>
			
			<br/><label for="login_password">Mật khẩu</label><br/>
			<input type="password" class="hz-required" placeholder="******" id="login_password" name="login_password"/><br/>
			
			<div class="clr"></div>
			<a href="#" data-form-id="form_login" callback-before-send="beforeSend" callback-after-success="login" class="button right hz-submit-ajax " data-url="<?php echo url_for2('member_login')?>">Đăng nhập</a>
		</form>
		</div>
	</aside>
	<div class="vline" style="margin-left:82px;height: 300px;"></div>
	<aside class="main right">
		<nav class="content">
			<a href="#"><h1>Đăng ký</h1></a>
			<div class="clr"></div>
		</nav>
		<div class="form">
		<form action="/" method="post" id="form_reg">
			<label for="login_email">Email đăng nhập</label>
			<input type="email" class="hz-required hz-email" placeholder="vd: <?php echo sfConfig::get('app_contact_mail')?>" id="reg_email" name="reg_email"/><br/>
			
			<label for="login_password">Mật khẩu</label>
			<input type="password" class="hz-required" placeholder="******" id="reg_password" name="reg_password"/><br/>
			
			<label for="login_password_confirm">Xác nhận mật khẩu</label>
			<input type="password" class="hz-required hz-confirm-required" data-id-confirm="reg_password" placeholder="******"  id="reg_password_confirm" name="reg_password_confirm"/><br/>
			
			<label for="faq_captcha">Mã bảo vệ</label>
			<input type="text" maxlength="6" placeholder="nhập ký tự hình bên" class="number hz-required captcha" name="reg_captcha" id="reg_captcha"/>  <img class="captcha" />
			
			<div class="clr"></div>
			<br/><span style="color:#f00">Chú ý: <em>khi đăng ký thành viên nghĩa bạn đã đồng ý và chấp nhận những điều khoản qui định của website công ty chúng tôi.</em></span>
			<br/><a href="#" callback-before-send="beforeReg" callback-after-success="register" data-form-id="form_reg" class="button right hz-submit-ajax " data-url="<?php echo url_for2('member_register')?>">Đăng ký thành viên</a>
		</form>
		</div>
	</aside>
	<div class="clr"></div>
	<aside>
		<div class="bar-title">
			<h1 class="right">Qui định của website</h1>
		</div>
		<div class="content" style="text-align: justify">
			<?php echo (SysPages::getContent(SysPages::ABOUT_MEMBER_RULE))?>
		</div>
	</aside>
	<div class="clr"></div>
</main>